package pack0601;
//运算符----赋值运算符
public class DemoC {
    public static void main(String[] args) {
        int a =4; //将4的值赋予了a
        int b =a; //将a的值赋予了b
        System.out.println(a);
        System.out.println(b);
        //假设变量a的值是6,变量b的值是4,思考如何交换2个变量的值
        int c =6;
        int d =4;
        int e =c;
        c = d ;
        d = e ;
        System.out.println(c);
        System.out.println(d);
    }
}
